package club;

import java.util.Date;
import java.util.List;

public class Activity {
    private String activityName;
    private Date date;
    private List<Member> participants;

    public Activity(String activityName, Date date, List<Member> participants) {
        this.activityName = activityName;
        this.date = date;
        this.participants = participants;
    }

    public String getActivityName() {
        return activityName;
    }

    public Date getDate() {
        return date;
    }

    public List<Member> getParticipants() {
        return participants;
    }

    @Override
    public String toString() {
        return activityName + " on " + date.toString();
    }
}
